package ua.kpi.JavaTraning5;

import ua.kpi.JavaTraning5.domain.Grid;
import ua.kpi.JavaTraning5.domain.Predator;

import java.awt.EventQueue;
import javax.swing.JFrame;


public class Main {


    public static void main(String[] a) {
                Grid grid = new Grid();
                JFrame window = new JFrame();
                window.setLocation(500, 300);
                window.setSize(200, 200);
                window.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
                window.add(grid);
                window.setVisible(true);
                Predator predator = new Predator();
                predator.setX(5);
                predator.setY(5);
                predator.move(grid, predator.getX() + 5, predator.getY() + 6);
    }
}